package Xue;

import java.util.Scanner;

public class TestManage {
	public static void main(String[] args) { 
	ManageStudent manageStudent=new ManageStudent();
    System.out.println("欢迎进入学生管理系统");
    Scanner scanner=new Scanner(System.in);
    while (true) {
		System.out.println("1 添加学生 2 删除学生 3 查询学生 4 修改学生 0 退出");
		//对输入的按键进行判断
		int num=scanner.nextInt();
		if (num==0) {
			System.out.println("谢谢使用");
			break;
		}
		switch (num) {
		case 1:
			manageStudent.addStudent();
			break;
		case 2:
			manageStudent.deleteStudent();
			break;
		case 3:
			manageStudent.showStudent();
			break;
		case 4:
			manageStudent.setStudent();
			break;
		case 0:
			System.out.println("谢谢使用");
			break;
		default:
			System.out.println("输入按键错误，请重新输入");
			break;
		}
	}
	}
}
